/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package izsla.beans;

import izsla.sb.UserManagementLocal;
import javax.ejb.EJB;

/**
 *
 * @author aki
 */
public class UserManagementSingleton {
    @EJB
    private UserManagementLocal um;

    private static UserManagementSingleton instance = null;

    private UserManagementSingleton() {
    }

    synchronized static public UserManagementLocal get() {
	if(instance == null) {
	    instance = new UserManagementSingleton();
	}
	return instance.um;
    }
}
